package com.itheima.sfbx.task.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

/**
 * @ClassName ClearFileHandlerJob.java
 * @Description 清理垃圾文件
 */
@Component
public class HelloWordHandlerJob {


    @XxlJob(value = "hello-word")
    //参数必须写, 不写就会报错
    public ReturnT<String> execute(String param) {  // 参数,在控制台配置,就可以接受了
        //输出100次字符串 iter: 增强for循环 fori: 普通for循环
        for (int i = 0; i < 100; i++) {
            System.out.println("---------Hello-Word-------" + i);
        }
        return ReturnT.SUCCESS;

    }
}
